const fs = require("fs");
const path = require("path");
const filePath = path.join(__dirname, "write.txt");

//异步
fs.writeFile(filePath, "hello node", (err) => {
    if (err) {
        console.log(err);
    }
})
